STEP 13: When random_choice is 2, computer picks "paper". We'll store this to figure out which player wins.

  • Click LOGIC, then and drag out String Variable. Drop it inside the last if-statement, below .Sprite().
  • Change the name of the new variable to from my_var to computer_choice.
  • Change the value of the new variable to "paper".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)